BASE_DIR = ../..
include $(BASE_DIR)/include.mak

TARGET = UI_Text3D

EXPORTED_OBJS = $(PSPRADIO_DIR)/PSPRadioExports.o 
OBJS =	$(PLUGINS_DIR)/UI_Interface.o $(EXPORTED_OBJS) \
		main.o TextUI3D.o TextUI3D_Panel.o TextUI3D_WindowManager_HSM.o \
		jsaVRAMManager.o jsaTextureCache.o

# Define to build this as a prx (instead of a static elf)
BUILD_PRX=1
PRX_EXPORTS=$(PLUGINS_DIR)/UI_Exports.exp

INCDIR = ./ $(PLUGINS_DIR) $(BASE_DIR) $(PSPRADIO_DIR) $(SHAREDLIB_DIR)/PSPApp \
		$(SHAREDLIB_DIR)/libpspnet $(SHAREDLIB_DIR)/libiniparser \
		$(SHAREDLIB_DIR)/libscreen $(SHAREDLIB_DIR)/Logging \
		$(PSPRADIO_DIR)/ScreenHandler
CFLAGS = $(GLOBAL_CFLAGS) -G0 -O0 -g -Wall 
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

LIBDIR = $(SHAREDLIB_DIR)/lib $(PLUGINS_DIR)/Common
LDFLAGS =
LIBS =  -lstdc++ -liniparser \
		-lpspgum -lpspgu -lpng -lz -lm -lPluginCommon -lpthreadlite

all: $(TARGET).prx

install:
	mkdir -p $(PSPRADIO_RELEASE_DIR)/$(TARGET)
	cp -vf $(TARGET).prx $(PSPRADIO_RELEASE_DIR)
	cp -vf *.cfg $(PSPRADIO_RELEASE_DIR)/$(TARGET)
	cp -vf Graphics/*.png $(PSPRADIO_RELEASE_DIR)/$(TARGET)

PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak
